<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

<link
	href="/yxtcmf/public/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css"
	rel="stylesheet">
<link href="/yxtcmf/public/simpleboot/css/simplebootadmin.css"
	rel="stylesheet">
<link href="/yxtcmf/public/js/artDialog/skins/default.css" rel="stylesheet" />
<link
	href="/yxtcmf/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css"
	rel="stylesheet" type="text/css">
<style>
.length_3 {
	width: 180px;
}

form .input-order {
	margin-bottom: 0px;
	padding: 3px;
	width: 40px;
}

.table-actions {
	margin-top: 5px;
	margin-bottom: 5px;
	padding: 0px;
}

.table-list {
	margin-bottom: 0px;
}

.progress {
	overflow: hidden;
	height: 15px;
	margin-bottom: 5px;
	background-color: #f5f5f5;
	border-radius: 4px;
	-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar-success {
	background-color: #70d445;
}

.progress-bar {
	float: left;
	width: 0%;
	height: 100%;
	font-size: 12px;
	line-height: 20px;
	color: #fff;
	text-align: center;
	background-color: #46c37b;
	-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
	-webkit-transition: width 0.6s ease;
	-o-transition: width 0.6s ease;
	transition: width 0.6s ease;
}
</style>
<!--[if IE 7]>
	<link rel="stylesheet" href="/yxtcmf/public/simpleboot/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
	<![endif]-->
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "/yxtcmf/",
    JS_ROOT: "public/js/",
    TOKEN: ""
};
</script>
<!-- Le javascript
    ================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/yxtcmf/public/js/jquery.js"></script>
<script src="/yxtcmf/public/js/wind.js"></script>
<script src="/yxtcmf/public/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<?php if(APP_DEBUG): ?><style>
#think_page_trace_open {
	z-index: 9999;
}
</style><?php endif; ?>
<body class="J_scroll_fixed">
<div class="wrap js-check-wrap">
  <ul class="nav nav-tabs">
     <li class="active"><a href="<?php echo U('AdminCenter/index');?>"  target="_self">教师列表</a></li>
     <li><a href="<?php echo U('AdminCenter/tixian');?>"  target="_self">提现管理</a></li>
	 <li><a href="<?php echo U('AdminCenter/setbili');?>"  target="_self">分成比例设置</a></li>
  </ul>
  
  <form class="js-ajax-form" action="" method="post">
      <table width="100%" class="table table-hover  table-list">
        <thead>
	          <tr>
	            <th width="40">编号</th>
	            <th>姓名</th>
	            <th width="160">课程数</th>
	            <th width="160">学员数</th>
	            <th width="200">加入时间</th>
	            <th width="100">状态</th>
	            <th width="100">操作</th>
	          </tr>
        </thead>
        	<?php $status=array("1"=>"<font color='green'>已审核</font>","0"=>"<font color='blue'>未审核</font>","2"=>"<font color='red'>未通过</font>"); $recommend_status=array("1"=>"已推荐","0"=>"未推荐"); ?>
        	<?php if(is_array($teacher)): foreach($teacher as $key=>$vo): ?><tr> 
		            <td><a><?php echo ($vo["id"]); ?></a></td>
		            <td><span><?php echo ($vo["t_name"]); ?></span></td>
    	            <td><?php echo ($vo["csnum"]); ?></td>
		            <td><?php echo ($vo["xynum"]); ?></td>
		            <td><?php echo ($vo["addtime"]); ?></td>
		            <td><?php echo ($status[$vo['state']]); ?></td>
		            <td>
		                <div class="btn-group">
		                   <a  class="btn btn-default btn-sm" >操作</a>
                           <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                             <span class="caret"></span>
                             <span class="sr-only"></span>                             
                           </button>                          
                           <ul class="dropdown-menu pull-right" role="menu" >
                             <li><a href="javascript:open_iframe_dialog('<?php echo U('Teacher/AdminCenter/tcourse',array('t_id'=>$vo['user_id']));?>','课程列表')">查看课程</a></li>
                             <li><a href="javascript:open_iframe_dialog('<?php echo U('Teacher/AdminCenter/requery',array('t_id'=>$vo['user_id']));?>','资格审核')">资格审核</a></li>
                             <?php if(empty($vo['folderid'])): ?><li><a href="<?php echo U('Teacher/AdminCenter/creatfolder',array('t_id'=>$vo['user_id']));?>">创建上传目录</a></li>
							 <?php else: ?>	
							    <li><a href="javascript:open_iframe_dialog('<?php echo U('Teacher/AdminCenter/folder',array('t_id'=>$vo['user_id']));?>','上传目录信息')">上传目录信息</a></li><?php endif; ?>
							 <?php if($vo['adminplate']==1): ?><li><a href="<?php echo U('Teacher/AdminCenter/adminforum',array('t_id'=>$vo['user_id']));?>">取消论坛管理员</a></li>
							 <?php else: ?>	
								<li><a href="<?php echo U('Teacher/AdminCenter/adminforum',array('t_id'=>$vo['user_id']));?>">设置为论坛管理员</a></li><?php endif; ?>
                           </ul>
                         </div>
					</td>
	          	</tr><?php endforeach; endif; ?>
          </table>
          <div class="pagination"><?php echo ($Page); ?></div>   
  </form>
</div>
<script src="/yxtcmf/public/js/common.js"></script>

</body>
</html>